package com.xcity.pomelo.response;

import com.xcity.db.entity.Player;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class PlayerSimpleInfoResponse extends Response {

	protected String name;
	protected byte sex;
	protected String icon;
	
	public PlayerSimpleInfoResponse(int serial, Player player) {
		super(serial);
		this.name = player.getName();
		this.sex = player.getSex();
		this.icon = player.getIcon();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public byte getSex() {
		return sex;
	}

	public void setSex(byte sex) {
		this.sex = sex;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

}
